import React from 'react'
import styles from './board.module.scss'

interface ItemProps {
    onClick: any,
    value: string | number,
    index: string | number,
}
export default function item({ onClick, value, index }: ItemProps) {
    return (
        <div className={styles.childNode} onClick={() => onClick(index)}>{value}</div>
    )
}
